package icu.zlz.emqx.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import icu.zlz.common.core.annotation.Excel;
import icu.zlz.common.core.web.domain.BaseEntity;

/**
 * 设备管理对象 iot_devices
 * 
 * @author zangs
 * @since  2025-01-02
 */
@Getter
@Setter
@ToString
public class IotDevices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备Id */
    private Long deviceId;

    /** client_id */
    @Excel(name = "client_id")
    private String deviceClientId;

    /** 设备名 */
    @Excel(name = "设备名")
    private String deviceName;

    /** 最后连接时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后连接时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastConnectionTime;

    /** 设备组id */
    @Excel(name = "设备组id")
    private Long groupId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 最后断开连接时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后断开连接时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastDisconnectionTime;

    /** 唯一id */
    @Excel(name = "唯一id")
    private String uid;


    private List<IotDevicesTopic> iotDevicesTopicList;
}
